package com.dgut.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.dgut.common.util.SystemJsonResponse;
import com.dgut.service.AuthService;

/**
 * @author huangyujia <huangyujia@kuaishou.com>
 * Created on 2024-06-18
 * 用户模块
 */
@RestController
@RequestMapping("user")
public class UserController {

    @Autowired
    private AuthService authService;

    @PostMapping("login")
    public SystemJsonResponse login(@RequestParam String userName, @RequestParam String password) {
        return authService.login(userName, password);
    }
}
